//
//  SHCThirdParts.m
//  LCFN-Buyers
//
//  Created by lcfn on 2018/3/22.
//  Copyright © 2018年 royce. All rights reserved.
//

#import "SHCThirdParts.h"
#import <IQKeyboardManager/IQKeyboardManager.h>
//#import "WXApi.h"
//#import <AipOcrSdk/AipOcrSdk.h>

@implementation SHCThirdParts
#pragma mark - 在APPDelegate导入此类即可执行
+ (void)load {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        [[self class] shc_configIQKeyboard];
//        [[self class] shc_configWxApi];
//        [[self class] shc_configOcr];
    });
}
#pragma mark - 配置键盘
+ (void)shc_configIQKeyboard{
    IQKeyboardManager *mangerKey = [IQKeyboardManager sharedManager];
    mangerKey.enable =YES;
    mangerKey.shouldResignOnTouchOutside =YES;
    mangerKey.shouldToolbarUsesTextFieldTintColor = YES;
    mangerKey.enableAutoToolbar = NO;
    mangerKey.keyboardDistanceFromTextField = 0.0;
}
#pragma mark - 配置微信支付
//+ (void)shc_configWxApi{
//    [WXApi registerApp:@"wxec1943892e97cf95" enableMTA:YES];
//}
#pragma maek - 配置拍照识别行驶证
//+ (void)shc_configOcr{
//    //    #error 【必须！】请在 ai.baidu.com中新建App, 绑定BundleId后，在此填写授权信息
//    //    #error 【必须！】上传至AppStore前，请使用lipo移除AipBase.framework、AipOcrSdk.framework的模拟器架构，参考FAQ：ai.baidu.com/docs#/OCR-iOS-SDK/top
//    //     授权方法1：在此处填写App的Api Key/Secret Key
//    [[AipOcrService shardService] authWithAK:aipOcrAK andSK:aipOcrSK];
//}
@end

